/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const onlineToolRouter = {
  path: '/online-tool',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Tools',
  meta: {
    title: 'Tools',
    icon: 'tool'
  },
  children: [
    {
      path: 'create',
      component: () => import('@/views/util/online-tool/create'),
      name: 'CreateOnlineTool',
      meta: { title: 'Create OnlineTool', icon: 'edit' },
      hidden: true
    },
    {
      path: 'edit/:id',
      component: () => import('@/views/util/online-tool/edit'),
      name: 'EditOnlineTool',
      meta: {
        title: 'Edit OnlineTool',
        activeMenu: '/util/online-tool/list'
      },
      hidden: true
    },
    {
      path: 'list',
      component: () => import('@/views/util/online-tool/list'),
      name: 'OnlineToolList',
      meta: { title: 'OnlineTools', icon: 'list' }
    },
    {
      path: 'upload',
      component: () => import('@/views/util/upload/index'),
      name: 'Upload',
      meta: { title: 'Upload', icon: 'upload' }
    },

    {
      path: 'ts-list',
      component: () => import('@/views/util/ts/list'),
      name: 'TSList',
      meta: { title: 'TSList', icon: 'list' }
    },
    {
      path: 'ts-list/create',
      component: () => import('@/views/util/ts/create'),
      name: 'CreateTSData',
      meta: { title: 'Create TS', icon: 'list' },
      hidden: true
    },
    {
      path: 'ts-list/edit:id',
      component: () => import('@/views/util/ts/edit'),
      name: 'EditTSData',
      meta: { title: 'Edit TS', icon: 'list', activeMenu: '/online-tool/ts-list' },
      hidden: true
    }
  ]
}

export default onlineToolRouter
